#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "qextserialport.h"
#include "qextserialenumerator.h"
#include <QtCore/QList>
#include <QtCore/QDebug>
#include <type.h>
#include <logger/logmanager.h>
#include <timer.h>
#include <mount/threadmount.h>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private:
    Ui::MainWindow *ui;
    QextSerialPort* port;
    QString stringOS;
    INT32 LogNbLine;
    logmanager *pLog;
    timer *pTimer;
    threadmount *pThreadMount;

public slots:
    void DisplayLogMessage(QString line, int code);
    void DisplayTime(QString val);
    void QuitApp();
    void DisplaySerialButton(QString,int);
    void DisplayInfoMount(Monture);
    void Error(int periph, int status);


};

#endif // MAINWINDOW_H
